import * as types from "../action-types";
let initState = {
    categroy: 'all',
    slider:[] //
}
// 首页的仓库
export default function (state = initState, action) {
    switch (action.type) {
        case types.CHANG_CATEGORY:
            return { ...state, categroy:action.payload }
        case types.SET_HOME_SLIDERS:
            return {
                ...state,
                slider:action.payload
            }
        default:
            return state;
    }
  

}
